package com.ruoyi.activity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activity.mapper.ActResultMapper;
import com.ruoyi.activity.domain.ActResult;
import com.ruoyi.activity.service.IActResultService;
import com.ruoyi.common.core.text.Convert;

/**
 * 活动结果Service业务层处理
 * 
 * @author YZD
 * @date 2022-07-13
 */
@Service
public class ActResultServiceImpl implements IActResultService 
{
    @Autowired
    private ActResultMapper actResultMapper;

    /**
     * 查询活动结果
     * 
     * @param id 活动结果ID
     * @return 活动结果
     */
    @Override
    public ActResult selectActResultById(Long id)
    {
        return actResultMapper.selectActResultById(id);
    }

    /**
     * 查询活动结果列表
     * 
     * @param actResult 活动结果
     * @return 活动结果
     */
    @Override
    public List<ActResult> selectActResultList(ActResult actResult)
    {
        return actResultMapper.selectActResultList(actResult);
    }

    /**
     * 新增活动结果
     * 
     * @param actResult 活动结果
     * @return 结果
     */
    @Override
    public int insertActResult(ActResult actResult)
    {
        return actResultMapper.insertActResult(actResult);
    }

    /**
     * 修改活动结果
     * 
     * @param actResult 活动结果
     * @return 结果
     */
    @Override
    public int updateActResult(ActResult actResult)
    {
        return actResultMapper.updateActResult(actResult);
    }

    /**
     * 删除活动结果对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteActResultByIds(String ids)
    {
        return actResultMapper.deleteActResultByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除活动结果信息
     * 
     * @param id 活动结果ID
     * @return 结果
     */
    @Override
    public int deleteActResultById(Long id)
    {
        return actResultMapper.deleteActResultById(id);
    }
}
